package Utile

import redis.clients.jedis.{Jedis, JedisPool}

/**
  * Created by yangqiyuan on 2018/3/29.
  */
object JedisUtil {
    def getjedis(): Jedis ={
        val pool: JedisPool = new JedisPool("vm01",6379)
        val resource: Jedis = pool.getResource
        resource
    }
}
